import { sm2 } from 'sm-crypto'
const cipherMode = 0  // 1 - C1C3C2，0 - C1C2C3，默认为1
const publickey="04e2ed3b149ae8787a10b2fb3662855c1a84fa16e2620105ae8fa89355eeb9c678d464695cc42dc31e356114350c641b99e569574389d2b7bfed69fad482e9a566";

export const encrypt = (content:string) => {
    return sm2.doEncrypt(content, publickey, cipherMode);
};
export const decrypt = (content:string) => {
    return sm2.doDecrypt(content, "私钥", cipherMode);
};